<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>style属性</title>
    <script src="js/vue.js"></script>
    <script>
        window.onload = function () {
            new Vue({
                el: '#itany',
                data: {
                    xx: {color: 'red', fontSize: '30px'},
                    yy: {backgroundColor: 'green'}
                }
            });
        }
    </script>
    <style>
        .aa {
            color: red;
            font-size: 20px;
        }

        .cc {
            background-color: #ccc;
        }
    </style>
</head>
<body>
<div id="itany">
    <!--  -->
    <!--    <p :style="xx">天安云谷</p>-->

    <!-- 数组 -->
    <p :style="[xx, yy]">天安云谷</p>
</div>
</body>
</html>